package com.open.rbac.model.dto.sys;

import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import com.open.center.model.dto.BaseDto;


/**
 * 组织机构
 *
 * @author Riche's
 * @since 2022/8/24
 */
@Schema(name = "OrganizationDto", description = "组织机构")
@EqualsAndHashCode(callSuper = true)
@Getter
@Setter
@NoArgsConstructor
public class OrganizationDto extends BaseDto {

    @Schema(description = "组织机构ID")
    private String id;

    @Schema(description = "父机构ID")
    private String parentId = "0";

    @Schema(description = "组织机构编码")
    private String code;

    @Schema(description = "组织机构名称")
    private String name;

    @Schema(description = "组织机构排序")
    private Integer sort;

    @Schema(description = "是否已启用：0-否，1-是")
    private boolean enable;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "子组织机构列表")
    private List<OrganizationDto> children;

}
